package edu.service.impl;



import edu.dto.CountDto;
import edu.support.base.service.BaseServiceImpl;
import edu.mapper.GoodsMapper;
import edu.domain.Goods;
import edu.service.GoodsService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * (Goods)表服务实现类
 *
 * @date 2022-02-09 20:29:04
 */
@Service
public class GoodsServiceImpl extends BaseServiceImpl<GoodsMapper, Goods> implements GoodsService{

    @Autowired
    private GoodsMapper goodsMapper;

    /**
     * 根据分类统计数量
     *
     * @return
     */
    @Override
    public List<CountDto> countByCategory() {
        return goodsMapper.countByCategory();
    }
}
